import { IsNotEmpty, IsString, MinLength } from 'class-validator';
export class AuthLoginDto {
  @IsNotEmpty({ message: '用户名不能为空' })
  @IsString()
  username: string;

  @IsNotEmpty({
    message: '密码不能为空',
  })
  @IsString()
  @MinLength(6, {
    message: '密码不能少于六位',
  })
  password: string;
}
